


from django.core.management.commands import runserver


# def inner_run(self, *args, **options):
# {
# 'verbosity': 1, 
# 'settings': None, 
# 'pythonpath': None, 
# 'traceback': False, 
# 'no_color': False, 
# 'force_color': False, 
# 'skip_checks': False, 
# 'addrport': '0.0.0.0:8999', 
# 'use_ipv6': False, 
# 'use_threading': True, 
# 'use_reloader': True, 
# 'use_static_handler': True, 
# 'insecure_serving': False
# }

{
	'SHELL': '/bin/bash',
	'COLORTERM': 'truecolor',
	'VSCODE_DEBUGPY_ADAPTER_ENDPOINTS': '/home/sc/.vscode-server/extensions/ms-python.debugpy-2025.8.0-linux-x64/.noConfigDebugAdapterEndpoints/endpoint-26a297cbaf274fcb.txt',
	'TERM_PROGRAM_VERSION': '1.101.2',
	'CONDA_EXE': '/home/sc/miniconda3/bin/conda',
	'PYDEVD_DISABLE_FILE_VALIDATION': '1',
	'PWD': '/home/sc/llm_proj',
	'LOGNAME': 'sc',
	'CONDA_ROOT': '/home/sc/miniconda3',
	'XDG_SESSION_TYPE': 'tty',
	'CONDA_PREFIX': '/home/sc/miniconda3/envs/py3.13',
	'BUNDLED_DEBUGPY_PATH': '/home/sc/.vscode-server/extensions/ms-python.debugpy-2025.8.0-linux-x64/bundled/libs/debugpy',
	'VSCODE_GIT_ASKPASS_NODE': '/home/sc/.vscode-server/cli/servers/Stable-2901c5ac6db8a986a5666c3af51ff804d05af0d4/server/node',
	'HOME': '/home/sc',
	'LANG': 'en_US.UTF-8',
	'LS_COLORS': 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=00:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.avif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:*~=00;90:*#=00;90:*.bak=00;90:*.crdownload=00;90:*.dpkg-dist=00;90:*.dpkg-new=00;90:*.dpkg-old=00;90:*.dpkg-tmp=00;90:*.old=00;90:*.orig=00;90:*.part=00;90:*.rej=00;90:*.rpmnew=00;90:*.rpmorig=00;90:*.rpmsave=00;90:*.swp=00;90:*.tmp=00;90:*.ucf-dist=00;90:*.ucf-new=00;90:*.ucf-old=00;90:',
	'SSL_CERT_DIR': '/usr/lib/ssl/certs',
	'CONDA_PROMPT_MODIFIER': '(py3.13) ',
	'GIT_ASKPASS': '/home/sc/.vscode-server/cli/servers/Stable-2901c5ac6db8a986a5666c3af51ff804d05af0d4/server/extensions/git/dist/askpass.sh',
	'SSH_CONNECTION': '192.168.3.6 55382 192.168.3.52 22',
	'VSCODE_GIT_ASKPASS_EXTRA_ARGS': '',
	'LESSCLOSE': '/usr/bin/lesspipe %s %s',
	'XDG_SESSION_CLASS': 'user',
	'TERM': 'xterm-256color',
	'LESSOPEN': '| /usr/bin/lesspipe %s',
	'USER': 'sc',
	'VSCODE_GIT_IPC_HANDLE': '/run/user/1000/vscode-git-bd169c2d32.sock',
	'CONDA_SHLVL': '2',
	'SHLVL': '1',
	'XDG_SESSION_ID': '1159',
	'CONDA_PYTHON_EXE': '/home/sc/miniconda3/bin/python',
	'XDG_RUNTIME_DIR': '/run/user/1000',
	'SSL_CERT_FILE': '/usr/lib/ssl/cert.pem',
	'PS1': '\\[\x1b]633;A\x07\\](py3.13) (base) \\[\\e]0;\\u@\\h: \\w\\a\\]${debian_chroot:+($debian_chroot)}\\[\\033[01;32m\\]\\u@\\h\\[\\033[00m\\]:\\[\\033[01;34m\\]\\w\\[\\033[00m\\]\\$ \\[\x1b]633;B\x07\\]',
	'SSH_CLIENT': '192.168.3.6 55382 22',
	'CONDA_DEFAULT_ENV': 'py3.13',
	'DEBUGINFOD_URLS': 'https://debuginfod.ubuntu.com ',
	'VSCODE_GIT_ASKPASS_MAIN': '/home/sc/.vscode-server/cli/servers/Stable-2901c5ac6db8a986a5666c3af51ff804d05af0d4/server/extensions/git/dist/askpass-main.js',
	'XDG_DATA_DIRS': '/usr/local/share:/usr/share:/var/lib/snapd/desktop',
	'BROWSER': '/home/sc/.vscode-server/cli/servers/Stable-2901c5ac6db8a986a5666c3af51ff804d05af0d4/server/bin/helpers/browser.sh',
	'PATH': '/home/sc/.vscode-server/cli/servers/Stable-2901c5ac6db8a986a5666c3af51ff804d05af0d4/server/bin/remote-cli:/home/sc/.local/bin:/home/sc/miniconda3/envs/py3.13/bin:/home/sc/miniconda3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/sc/.vscode-server/cli/servers/Stable-2901c5ac6db8a986a5666c3af51ff804d05af0d4/server/bin/remote-cli:/home/sc/.local/bin:/home/sc/miniconda3/bin:/home/sc/miniconda3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/sc/.vscode-server/cli/servers/Stable-2901c5ac6db8a986a5666c3af51ff804d05af0d4/server/bin/remote-cli:/home/sc/.local/bin:/home/sc/miniconda3/bin:/home/sc/miniconda3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin',
	'DBUS_SESSION_BUS_ADDRESS': 'unix:path=/run/user/1000/bus',
	'CONDA_PREFIX_1': '/home/sc/miniconda3',
	'CONDA_PREFIX_2': '/home/sc/miniconda3/envs/py3.13',
	'TERM_PROGRAM': 'vscode',
	'VSCODE_IPC_HOOK_CLI': '/run/user/1000/vscode-ipc-77803f26-64ac-47ff-bd1a-0669030e64a6.sock',
	'_': '/home/sc/miniconda3/envs/py3.13/bin/python',
	'DJANGO_SETTINGS_MODULE': 'firstDemo.settings'
}



aa = ['manage.py', 'runserver', '0.0.0.0:8999']
print(aa[2:])
print(list(aa[2:]))

# <module 'django.apps.registry' from '/home/sc/miniconda3/envs/py3.13/lib/python3.13/site-packages/django/apps/registry.py'>
# sys.modules[__name__]



# --------ss--------xx---->  ['check', 'compilemessages', 'createcachetable', 'dbshell', 'diffsettings', 'dumpdata', 'flush', 'inspectdb', 'loaddata', 'makemessages', 'makemigrations', 'migrate', 'optimizemigration', 'runserver', 'sendtestemail', 'shell', 'showmigrations', 'sqlflush', 'sqlmigrate', 'sqlsequencereset', 'squashmigrations', 'startapp', 'startproject', 'test', 'testserver']
# --------ss--------xx---->  []
# --------ss--------xx---->  ['collectstatic', 'findstatic', 'runserver']
# --------ss--------xx---->  []
# --------ss--------xx---->  ['clearsessions']
# --------ss--------xx---->  ['remove_stale_contenttypes']
# --------ss--------xx---->  ['changepassword', 'createsuperuser']
# --------ss--------xx---->  []


# ----xx------->    {
# 'check': 'django.core', 
# 'compilemessages': 'django.core', 
# 'createcachetable': 'django.core', 
# 'dbshell': 'django.core', 
# 'diffsettings': 'django.core', 
# 'dumpdata': 'django.core', 
# 'flush': 'django.core', 
# 'inspectdb': 'django.core', 
# 'loaddata': 'django.core', 
# 'makemessages': 'django.core', 
# 'makemigrations': 'django.core', 
# 'migrate': 'django.core', 
# 'optimizemigration': 'django.core', 
# 'runserver': 'django.core', 
# 'sendtestemail': 'django.core', 
# 'shell': 'django.core', 
# 'showmigrations': 'django.core', 
# 'sqlflush': 'django.core', 
# 'sqlmigrate': 'django.core', 
# 'sqlsequencereset': 'django.core', 
# 'squashmigrations': 'django.core', 
# 'startapp': 'django.core', 
# 'startproject': 'django.core', 
# 'test': 'django.core', 
# 'testserver': 'django.core'
# }
